import com.sup.generator.entity.GrUserEntity;
import com.sup.generator.mapper.GrUserMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Zh
 * @version v1.0
 * @description:
 * @date 2020/11/13 11:18
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = GrUserTestApplication.class)
@MapperScan("com.sup.generator.mapper")
public class GrUserTestApplication {

    @Autowired
    private GrUserMapper grUserMapper;

    @Test
    public void getById(){
       GrUserEntity grUserEntity = grUserMapper.selectById(1);
        System.out.println(grUserEntity.toString());
    }

}
